<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "admin".
 *
 * @property integer $u_id
 * @property string $u_name
 * @property string $u_pass
 * @property integer $go_num
 * @property string $last_go_time
 */
class Admin extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'admin';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['go_num'], 'integer'],
            [['last_go_time'], 'safe'],
            [['u_name'], 'string', 'max' => 20],
            [['u_pass'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'u_id' => 'U ID',
            'u_name' => 'U Name',
            'u_pass' => 'U Pass',
            'go_num' => 'Go Num',
            'last_go_time' => 'Last Go Time',
        ];
    }
}
